core: Deduplicate code converting struct stat -> GFileInfo
authorColin Walters <walters@verbum.org>
Wed, 17 Dec 2014 02:14:10 +0000 (21:14 -0500)
committerColin Walters <walters@verbum.org>
Fri, 19 Dec 2014 15:18:59 +0000 (10:18 -0500)
commitc4efbf67182072ed95bbdacf20f18da03484e47c
treef29367f9a64e5c5d831a2b6c292b332c00b4af39
parent880328ba03c7aa09d55e0b193150e4409d4c98d7
core: Deduplicate code converting struct stat -> GFileInfo

We were doing the same thing in a number of places, make a helper
function.
src/libostree/ostree-core-private.h
src/libostree/ostree-core.c
src/libostree/ostree-repo-libarchive.c
src/libostree/ostree-repo.c